import request from '@/utils/request.js'
// 成品入库 扫码获取料框及列表信息
export const GetStackByBarCode = (params) => {
  return request.post('ProductManager/JQClient/GetStackByBarCode', params)
}

// 成品入库 获取合同信息
export const GetProductTaskListByFilter = (params) => {
  return request.post('ProductManager/JQClient/GetProductTaskListByFilter', params)
}

// 成品入库 根据款式编号获取款式信息
export const GetMaterielsDetailByID = (params) => {
  return request.post('ProductManager/JQClient/GetMaterielsDetailByID', params)
}

// 成品入库 根据产品编号获得制令列表
export const GetSaleContractListByLineID = (params) => {
  return request.post('ProductManager/JQClient/GetSaleContractListByLineID', params)
}

// 成品入库 保存成品入库
export const SaveFinishedInStock = (params) => {
  return request.post('ProductManager/JQClient/SaveFinishedInStock', params)
}

// 成品入库 获取成品入库列表
export const GetFinishedInStockByOperID = (params) => {
  return request.post('ProductManager/JQClient/GetFinishedInStockByOperID', params)
}

// 成品入库 打印清单
export const GetPrintInStockByOperID = (params) => {
  return request.post('ProductManager/JQClient/GetPrintInStockByOperID', params)
}

// 生产领料 获取款式列表
export const GetProductStyle = () => {
  return request.get('ProductManager/JQClient/GetProductStyle', {})
}

// 生产领料 获取客户列表
export const GetCustomerList = () => {
  return request.get('ProductManager/JQClient/GetCustomerList', {})
}

// 生产领料 获取生产领料列表
export const GetStockInventoryByFilter = (params) => {
  return request.post('ProductManager/JQClient/GetStockInventoryByFilter', params)
}

// 生产领料 扫码获取裁片信息
export const GetCuttingInStockDesignByStock = (params) => {
  return request.post('ProductManager/KCClient/GetCuttingInStockDesignByStock', params)
}

// 生产领料 扫码获取辅料信息
export const GetAccessoriesStockDesignByStockID = (params) => {
  return request.post('ProductManager/KCClient/GetAccessoriesStockDesignByStockID', params)
}

// 生产领料 保存生产领料信息
export const SaveJQClientOutStock = (params) => {
  return request.post('ProductManager/JQClient/SaveJQClientOutStock', params)
}

// 生产退料 获取生产退料信息
export const GetStockInventoryOutByFilter = (params) => {
  return request.post('ProductManager/JQClient/GetStockInventoryOutByFilter', params)
}

// 生产退料 扫码获取生产退料信息
export const GetStockInventoryOutDteail = (params) => {
  return request.post('ProductManager/JQClient/GetStockInventoryOutDteail', params)
}

// 生产退料 保存生产退料信息
export const SaveJQClientReturnStock = (params) => {
  return request.post('ProductManager/JQClient/SaveJQClientReturnStock', params)
}

// 料框核对 根据垛号回车查询明细
export const GetProductStockByBarCode = (params) => {
  return request.post('ProductManager/JQClient/GetProductStockByBarCode', params)
}

// 齐料核对 分页查询今日来料数据
export const GetTodayProductStockByFilter = (params) => {
  return request.post('ProductManager/JQClient/GetTodayProductStockByFilter', params)
}

// 齐料核对 分页查询实时原料库存数据 裁片
export const GetTimeProductStockByFilter = (params) => {
  return request.post('ProductManager/JQClient/GetTimeProductStockByFilter', params)
}
// 齐料核对 分页查询实时原料库存数据 辅料
export const GetTimeProductFStockByFilter = (params) => {
  return request.post('ProductManager/JQClient/GetTimeProductFStockByFilter', params)
}

// 成品入库  获取监区下面的组信息
export const GetProductLineByOrgID = (params) => {
  return request.post('ProductManager/JQClient/GetProductLineByOrgID', params)
}

// 生产叫料列表
export const GetMaterialRequisition = (params) => {
  return request.post('ProductManager/JQClient/GetMaterialRequisition', params)
}

// 根据监区获取款信息
export const GetStyleByOrgID = (params) => {
  return request.post('ProductManager/JQClient/GetStyleByOrgID', params)
}

// 根据款编号获取颜色规格信息
export const GetColorSpecByStyleID = (params) => {
  return request.post('ProductManager/JQClient/GetColorSpecByStyleID', params)
}

// 保存叫料单
export const AddMaterialRequisition = (params) => {
  return request.post('ProductManager/JQClient/AddMaterialRequisition', params)
}

// 根据编号查询明细信息
export const GetMaterialRequisitionByID = (params) => {
  return request.post('ProductManager/JQClient/GetMaterialRequisitionByID', params)
}

// 根据编号撤销状态
export const UpdateMaterialRequisitionByID = (params) => {
  return request.post('ProductManager/JQClient/UpdateMaterialRequisitionByID', params)
}
